
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>问题列表</title>
    <script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <link rel="stylesheet" href="https://jzcloud.jiruan.ltd/web_view/css/style.css">

    <style type="text/css">
        a{
            text-decoration: none;
        }
        .aboulistL{
            border-right: none;
        }
        .aboulistR{
            border-left:1px solid #eee;
        }
    </style>

</head>
<body>




<?php foreach($data as $key=>$value){ ?>
<div class="aboutlist">
    <a href="/api/question/questqionlist?cid=<?php echo $value['id']; ?>">
        <div class="aboulistL">
            <p>
                <img src="<?php echo $value['icon']; ?>" width="50px"/>
            </p>
            <p>
                <?php echo $value['name']; ?>
            </p>
        </div>
    </a>
    <div class="aboulistR">
        <?php foreach($value['child'] as $key=>$value){ ?>
        <a href="/api/question/questqiondetail?aid=<?php echo $value['id']; ?>"><?php echo $value['question']; ?></a>
        <?php }?>

    </div>
</div>
<?php } ?>



</body>
</html>